package xorOperation;

public class Solution {
    public int xorOperation(int n, int start) {
        int res=1;
        for (int i = 0; i <n ; i++) {
            res=res^(start+2*i);
        }
        return res;
    }
}
